package zy011;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Calendar;

public class zy22 {
	public static void main(String[] args) throws IOException {
		FileInputStream fis=new FileInputStream("d:\\mp.mp3");
		FileOutputStream fos=new FileOutputStream("2.mp3");
		byte[] buf2=new byte[1024];
		int len=0;
		long before = Calendar.getInstance().getTimeInMillis(); 
		while((len=fis.read(buf2))!=-1){
			fos.write(buf2,0,len);
		}
		long after = Calendar.getInstance().getTimeInMillis();
		long time=after-before;
		System.out.println(time);//28
	}
}
